Who are you?
Name, pronouns, group you work in
What you want to get out of the class
Favorite spring activity
Data science fundamentals: How do you translate your scientific question to a data wrangling problem and answer it?
1-2 hour exercises after each session are strongly encouraged as they provide practice.
Optional time to work on exercises together on Fridays Noon - 1pm PT.
We will focus on English <-> Programming Code for R Interpreter in this class.
Another way of putting it: How we organize ideas <-> Instructing a computer to do something.
What’s the connection between English <-> Programming Code for R Interpreter?
A pre-course survey:
https://forms.gle/Hr59ZbAan1JTumCa7
[1] 39
Numeric: 18, -21, 65, 1.25
Character: “ATCG”, “Whatever”, “948-293-0000”
Logical: TRUE, FALSE
To build up a computer program, we need to store our returned data type from our expression somewhere for downstream use.
Execution rule for variable assignment
Evaluate the expression to the right of =.
Bind variable to the left of = to the resulting value.
The variable is stored in the environment.
<- is okay too!
Look, now x can be reused downstream:
[1] 37
A function has a function name, arguments, and returns a data type.
Execution rule for functions:
Evaluate the function by its arguments, and if the arguments contain expressions, evaluate those expressions first.
The output of functions is called the returned value.
Computer = powerful + stupid
Even the smallest spelling and formatting changes will cause unexpected output and errors!
Maybe see you Friday Noon - 1pm PT to practice together!